//
//  UILabel+additional.h
//  RaiyiCommon
//
//  Created by zhiwei ma on 12-4-26.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UILabel (additional)

+ (UILabel *)labelWithText:(NSString *)text font:(UIFont *)font textColor:(UIColor *)textColor;
+ (UILabel *)labelWithText:(NSString *)text font:(UIFont *)font textColor:(UIColor *)textColor width:(CGFloat)width;//numberOfLines = 1
+ (UILabel *)labelWithText:(NSString *)text font:(UIFont *)font textColor:(UIColor *)textColor width:(CGFloat)width numberOfLines:(NSUInteger)numberOfLines lineBreakMode:(UILineBreakMode)linBreakMode;

+ (CGSize)fitSize:(CGFloat)aWidth text:(NSString*)aText font:(UIFont*)aFont numberOfLines:(NSInteger)aNumberOfLines lineBreakMode:(UILineBreakMode)aLineBreakMode;
- (CGSize)fitSize:(CGFloat)aWidth;
- (CGFloat)fitWidth:(CGFloat)aHeight;

@end
